#include "mainwindow.h"
#include <QApplication>
#include"screenmanager.cpp"
#include"windowmanager.cpp"
#include<windows.h>
using namespace std;
Windowmanager * WINDOWMANAGER;
DWORD WINAPI Fun1Proc(LPVOID lpParameter){
        WINDOWMANAGER->run();
}
int main(int argc, char *argv[])
{
    QApplication a(argc, argv);
    MainWindow w;
    WINDOWMANAGER =new Windowmanager(&w);
    HANDLE hThreadl=CreateThread(NULL,0,Fun1Proc,NULL,0,NULL); //<2>
    CloseHandle(hThreadl);
    w.show();
    return a.exec();
}
